﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Specifications;

namespace My.Domain.Issues
{
    public interface IIssueRepository : IRepository<Issue, Guid>
    {
        /// <summary>
        /// 通过规约获取问题列表
        /// </summary>
        /// <param name="spec"></param>
        /// <returns></returns>
        Task<List<Issue>> GetIssuesAsync(ISpecification<Issue> spec);

        Task<int> GetIssueCountOfUserAsync(Guid userId);
    }
}
